package com.yang.controller.admin;

import com.yang.bean.MarketLog;
import com.yang.bean.common.BaseRespVo;
import com.yang.bean.common.CommonData;
import com.yang.service.admin.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dinghongrui
 * @create 2022/09/07 14:43
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;

    @RequestMapping("list")
    public BaseRespVo<CommonData<MarketLog>> queryAllLog(Integer page, Integer limit, String sort, String order, String name) {

        CommonData<MarketLog> commonData = adminLogService.queryAllLog(page, limit, sort, order, name);
        return BaseRespVo.ok(commonData);
    }
}
